<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1">
    <title>随笔（持续更新） | ShuangChenYue</title>
    <meta name="generator" content="VuePress 1.9.10">
    <link rel="icon" href="https://cdn.jsdelivr.net/gh/cmty256/imgs-blog@main/logo/白云.38zbldnhh180.jpg">
    <meta name="description" content="满招损，谦受益">
    <meta name="keywords" content="专注于Cpp语言的旅行者">
    
    <link rel="preload" href="/assets/css/0.styles.952d6952.css" as="style"><link rel="preload" href="/assets/js/app.67adcfd9.js" as="script"><link rel="preload" href="/assets/js/4.9aaa1650.js" as="script"><link rel="preload" href="/assets/js/1.5474518c.js" as="script"><link rel="preload" href="/assets/js/3.593d14fc.js" as="script"><link rel="preload" href="/assets/js/152.41cde7f0.js" as="script"><link rel="prefetch" href="/assets/js/10.3242746b.js"><link rel="prefetch" href="/assets/js/100.9224de43.js"><link rel="prefetch" href="/assets/js/101.f0d1b059.js"><link rel="prefetch" href="/assets/js/102.996bfc6d.js"><link rel="prefetch" href="/assets/js/103.9bfdbd6f.js"><link rel="prefetch" href="/assets/js/104.8613f283.js"><link rel="prefetch" href="/assets/js/105.aa6e809e.js"><link rel="prefetch" href="/assets/js/106.90192392.js"><link rel="prefetch" href="/assets/js/107.e82a40b7.js"><link rel="prefetch" href="/assets/js/108.994cd438.js"><link rel="prefetch" href="/assets/js/109.ec15acc2.js"><link rel="prefetch" href="/assets/js/11.c04b41c1.js"><link rel="prefetch" href="/assets/js/110.c32d8576.js"><link rel="prefetch" href="/assets/js/111.453b5d50.js"><link rel="prefetch" href="/assets/js/112.ffbdb3a4.js"><link rel="prefetch" href="/assets/js/113.12b8ad7d.js"><link rel="prefetch" href="/assets/js/114.899d2998.js"><link rel="prefetch" href="/assets/js/115.b7ad9576.js"><link rel="prefetch" href="/assets/js/116.a8394748.js"><link rel="prefetch" href="/assets/js/117.0edfe25b.js"><link rel="prefetch" href="/assets/js/118.9161b1fe.js"><link rel="prefetch" href="/assets/js/119.be59e21b.js"><link rel="prefetch" href="/assets/js/12.41437bf6.js"><link rel="prefetch" href="/assets/js/120.bcf439fb.js"><link rel="prefetch" href="/assets/js/121.c3d251b8.js"><link rel="prefetch" href="/assets/js/122.62b1caba.js"><link rel="prefetch" href="/assets/js/123.787c2ab0.js"><link rel="prefetch" href="/assets/js/124.a880746f.js"><link rel="prefetch" href="/assets/js/125.d8edfe7b.js"><link rel="prefetch" href="/assets/js/126.4ff01546.js"><link rel="prefetch" href="/assets/js/127.9416d1ff.js"><link rel="prefetch" href="/assets/js/128.01a4a7a0.js"><link rel="prefetch" href="/assets/js/129.76876665.js"><link rel="prefetch" href="/assets/js/13.922328e9.js"><link rel="prefetch" href="/assets/js/130.7f631dd9.js"><link rel="prefetch" href="/assets/js/131.c9e0fde9.js"><link rel="prefetch" href="/assets/js/132.1c04cde5.js"><link rel="prefetch" href="/assets/js/133.e8f381cd.js"><link rel="prefetch" href="/assets/js/134.03d19f8b.js"><link rel="prefetch" href="/assets/js/135.44607494.js"><link rel="prefetch" href="/assets/js/136.6a1eb3c9.js"><link rel="prefetch" href="/assets/js/137.27898fd1.js"><link rel="prefetch" href="/assets/js/138.5bc0cf54.js"><link rel="prefetch" href="/assets/js/139.c2d1addc.js"><link rel="prefetch" href="/assets/js/14.e54d7526.js"><link rel="prefetch" href="/assets/js/140.052ec8e4.js"><link rel="prefetch" href="/assets/js/141.131abb5a.js"><link rel="prefetch" href="/assets/js/142.6ba6c07b.js"><link rel="prefetch" href="/assets/js/143.5dd51d22.js"><link rel="prefetch" href="/assets/js/144.b45afca8.js"><link rel="prefetch" href="/assets/js/145.faa9fb04.js"><link rel="prefetch" href="/assets/js/146.b54c024d.js"><link rel="prefetch" href="/assets/js/147.a1223242.js"><link rel="prefetch" href="/assets/js/148.4767bcb2.js"><link rel="prefetch" href="/assets/js/149.b65ab046.js"><link rel="prefetch" href="/assets/js/15.7082a3da.js"><link rel="prefetch" href="/assets/js/150.9bd8c175.js"><link rel="prefetch" href="/assets/js/151.9f830e96.js"><link rel="prefetch" href="/assets/js/153.f57d65e0.js"><link rel="prefetch" href="/assets/js/154.5d7c8d51.js"><link rel="prefetch" href="/assets/js/155.0ae99532.js"><link rel="prefetch" href="/assets/js/156.5a54e043.js"><link rel="prefetch" href="/assets/js/157.c25b5d40.js"><link rel="prefetch" href="/assets/js/158.aa025b46.js"><link rel="prefetch" href="/assets/js/159.47939d88.js"><link rel="prefetch" href="/assets/js/16.fc775b7b.js"><link rel="prefetch" href="/assets/js/160.f8624459.js"><link rel="prefetch" href="/assets/js/161.7a075dc2.js"><link rel="prefetch" href="/assets/js/162.1d48f266.js"><link rel="prefetch" href="/assets/js/163.5d68a99f.js"><link rel="prefetch" href="/assets/js/164.1262d0e5.js"><link rel="prefetch" href="/assets/js/165.2ccf0bdd.js"><link rel="prefetch" href="/assets/js/166.21ece4d9.js"><link rel="prefetch" href="/assets/js/167.bf8adb95.js"><link rel="prefetch" href="/assets/js/168.1cb8440d.js"><link rel="prefetch" href="/assets/js/169.1dd1e396.js"><link rel="prefetch" href="/assets/js/17.ecc7be70.js"><link rel="prefetch" href="/assets/js/170.c29ec18f.js"><link rel="prefetch" href="/assets/js/171.38820827.js"><link rel="prefetch" href="/assets/js/172.bbc8ffc6.js"><link rel="prefetch" href="/assets/js/173.470e21e7.js"><link rel="prefetch" href="/assets/js/174.3c2df318.js"><link rel="prefetch" href="/assets/js/175.d2690cdb.js"><link rel="prefetch" href="/assets/js/176.9ca64696.js"><link rel="prefetch" href="/assets/js/177.76f3271d.js"><link rel="prefetch" href="/assets/js/178.d7d9def2.js"><link rel="prefetch" href="/assets/js/179.b5644743.js"><link rel="prefetch" href="/assets/js/18.31fe7ecd.js"><link rel="prefetch" href="/assets/js/180.7592d5ef.js"><link rel="prefetch" href="/assets/js/181.5cb77d35.js"><link rel="prefetch" href="/assets/js/182.6fa5633c.js"><link rel="prefetch" href="/assets/js/183.b3a53d1b.js"><link rel="prefetch" href="/assets/js/184.3815c537.js"><link rel="prefetch" href="/assets/js/185.bcf4ab71.js"><link rel="prefetch" href="/assets/js/186.1cc02f6d.js"><link rel="prefetch" href="/assets/js/187.8b425fb7.js"><link rel="prefetch" href="/assets/js/188.44ccbd02.js"><link rel="prefetch" href="/assets/js/189.353b35e3.js"><link rel="prefetch" href="/assets/js/19.520992d5.js"><link rel="prefetch" href="/assets/js/190.c284595f.js"><link rel="prefetch" href="/assets/js/191.788ecc2d.js"><link rel="prefetch" href="/assets/js/192.712a164e.js"><link rel="prefetch" href="/assets/js/193.da58aba3.js"><link rel="prefetch" href="/assets/js/194.6b1b1f4d.js"><link rel="prefetch" href="/assets/js/195.c31d5c39.js"><link rel="prefetch" href="/assets/js/196.f6670c4d.js"><link rel="prefetch" href="/assets/js/197.5a1f50ab.js"><link rel="prefetch" href="/assets/js/2.ab565158.js"><link rel="prefetch" href="/assets/js/20.69e29cdc.js"><link rel="prefetch" href="/assets/js/21.2fd424ad.js"><link rel="prefetch" href="/assets/js/22.d4c0be54.js"><link rel="prefetch" href="/assets/js/23.4bb90ecc.js"><link rel="prefetch" href="/assets/js/24.c01be6b2.js"><link rel="prefetch" href="/assets/js/25.c8833687.js"><link rel="prefetch" href="/assets/js/26.8042b555.js"><link rel="prefetch" href="/assets/js/27.0d5fa4c0.js"><link rel="prefetch" href="/assets/js/28.f9735b8b.js"><link rel="prefetch" href="/assets/js/29.3af53626.js"><link rel="prefetch" href="/assets/js/30.5f1b56d1.js"><link rel="prefetch" href="/assets/js/31.544b2649.js"><link rel="prefetch" href="/assets/js/32.aa321988.js"><link rel="prefetch" href="/assets/js/33.6aba2c86.js"><link rel="prefetch" href="/assets/js/34.e1bbff24.js"><link rel="prefetch" href="/assets/js/35.233f76e0.js"><link rel="prefetch" href="/assets/js/36.cb773972.js"><link rel="prefetch" href="/assets/js/37.393d9c59.js"><link rel="prefetch" href="/assets/js/38.e2d530c5.js"><link rel="prefetch" href="/assets/js/39.acaf1cc0.js"><link rel="prefetch" href="/assets/js/40.358f731e.js"><link rel="prefetch" href="/assets/js/41.ded24b7e.js"><link rel="prefetch" href="/assets/js/42.b9f683c3.js"><link rel="prefetch" href="/assets/js/43.c8fb3e66.js"><link rel="prefetch" href="/assets/js/44.633142da.js"><link rel="prefetch" href="/assets/js/45.6095e772.js"><link rel="prefetch" href="/assets/js/46.421d8c7a.js"><link rel="prefetch" href="/assets/js/47.da50fe47.js"><link rel="prefetch" href="/assets/js/48.15ff5726.js"><link rel="prefetch" href="/assets/js/49.b662e624.js"><link rel="prefetch" href="/assets/js/5.c1b8a209.js"><link rel="prefetch" href="/assets/js/50.a8bc75df.js"><link rel="prefetch" href="/assets/js/51.51e36ae7.js"><link rel="prefetch" href="/assets/js/52.54cc6e51.js"><link rel="prefetch" href="/assets/js/53.4173561d.js"><link rel="prefetch" href="/assets/js/54.7cab8416.js"><link rel="prefetch" href="/assets/js/55.3d7317d3.js"><link rel="prefetch" href="/assets/js/56.3c22255b.js"><link rel="prefetch" href="/assets/js/57.18e46e30.js"><link rel="prefetch" href="/assets/js/58.aad57f31.js"><link rel="prefetch" href="/assets/js/59.7897f6a7.js"><link rel="prefetch" href="/assets/js/6.3131f88a.js"><link rel="prefetch" href="/assets/js/60.5cd0051a.js"><link rel="prefetch" href="/assets/js/61.d9606403.js"><link rel="prefetch" href="/assets/js/62.aede9df0.js"><link rel="prefetch" href="/assets/js/63.2c30e554.js"><link rel="prefetch" href="/assets/js/64.18228ab7.js"><link rel="prefetch" href="/assets/js/65.27cb3fba.js"><link rel="prefetch" href="/assets/js/66.2fa6c2dc.js"><link rel="prefetch" href="/assets/js/67.d274a8df.js"><link rel="prefetch" href="/assets/js/68.3069cfcf.js"><link rel="prefetch" href="/assets/js/69.4c28600f.js"><link rel="prefetch" href="/assets/js/7.89e6165d.js"><link rel="prefetch" href="/assets/js/70.4175440c.js"><link rel="prefetch" href="/assets/js/71.2ee6b435.js"><link rel="prefetch" href="/assets/js/72.c75e3bb8.js"><link rel="prefetch" href="/assets/js/73.6f8b8211.js"><link rel="prefetch" href="/assets/js/74.6c7720cf.js"><link rel="prefetch" href="/assets/js/75.cccfb229.js"><link rel="prefetch" href="/assets/js/76.f022e5da.js"><link rel="prefetch" href="/assets/js/77.dab46206.js"><link rel="prefetch" href="/assets/js/78.ca574b2a.js"><link rel="prefetch" href="/assets/js/79.3d75e618.js"><link rel="prefetch" href="/assets/js/80.091749b1.js"><link rel="prefetch" href="/assets/js/81.14db0e21.js"><link rel="prefetch" href="/assets/js/82.8a2b1809.js"><link rel="prefetch" href="/assets/js/83.84a4b599.js"><link rel="prefetch" href="/assets/js/84.11d7c222.js"><link rel="prefetch" href="/assets/js/85.273d4388.js"><link rel="prefetch" href="/assets/js/86.fb40e20c.js"><link rel="prefetch" href="/assets/js/87.3316639e.js"><link rel="prefetch" href="/assets/js/88.dfc52200.js"><link rel="prefetch" href="/assets/js/89.8d615f6e.js"><link rel="prefetch" href="/assets/js/90.1d9f08bb.js"><link rel="prefetch" href="/assets/js/91.566813e7.js"><link rel="prefetch" href="/assets/js/92.d13c6f41.js"><link rel="prefetch" href="/assets/js/93.845c42a0.js"><link rel="prefetch" href="/assets/js/94.20a37b77.js"><link rel="prefetch" href="/assets/js/95.1a498005.js"><link rel="prefetch" href="/assets/js/96.39fa7f4b.js"><link rel="prefetch" href="/assets/js/97.50f7170e.js"><link rel="prefetch" href="/assets/js/98.dd2e15d6.js"><link rel="prefetch" href="/assets/js/99.ef7ea06a.js"><link rel="prefetch" href="/assets/js/vendors~docsearch.ae6b1de9.js">
    <link rel="stylesheet" href="/assets/css/0.styles.952d6952.css">
  </head>
  <body class="theme-mode-light">
    <div id="app" data-server-rendered="true"><div class="theme-container sidebar-open have-rightmenu"><header class="navbar blur"><div title="目录" class="sidebar-button"><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" role="img" viewBox="0 0 448 512" class="icon"><path fill="currentColor" d="M436 124H12c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12z"></path></svg></div> <a href="/" class="home-link router-link-active"><img src="https://cdn.jsdelivr.net/gh/cmty256/imgs-blog@main/logo/白云.38zbldnhh180.jpg" alt="ShuangChenYue" class="logo"> <span class="site-name can-hide">ShuangChenYue</span></a> <div class="links"><div class="search-box"><input aria-label="Search" autocomplete="off" spellcheck="false" value=""> <!----></div> <nav class="nav-links can-hide"><div class="nav-item"><a href="/" class="nav-link">首页</a></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="CPP语言" class="dropdown-title"><!----> <span class="title" style="display:;">CPP语言</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/pages/c5bdd8/" class="nav-link">Cpp之旅</a></li><li class="dropdown-item"><!----> <a href="/pages/279e62/" class="nav-link">Cpp专栏</a></li><li class="dropdown-item"><!----> <a href="/pages/801755/" class="nav-link">Effective_CPP</a></li><li class="dropdown-item"><!----> <a href="/pages/6b2468/" class="nav-link">muduo网络库</a></li><li class="dropdown-item"><!----> <a href="/pages/5f8c9f/" class="nav-link">Unix环境高级编程</a></li><li class="dropdown-item"><!----> <a href="/pages/3f1d21/" class="nav-link">Cpp提高编程</a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="计算机基础" class="dropdown-title"><!----> <span class="title" style="display:;">计算机基础</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/pages/7b1cb2/" class="nav-link">计算机网络</a></li><li class="dropdown-item"><!----> <a href="/pages/6048a8/" class="nav-link">操作系统</a></li><li class="dropdown-item"><!----> <a href="/pages/3b34ba/" class="nav-link">数据结构</a></li><li class="dropdown-item"><!----> <a href="/pages/412fe7/" class="nav-link">Linux</a></li><li class="dropdown-item"><!----> <a href="/pages/2dcfa1/" class="nav-link">算法</a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="数据库" class="dropdown-title"><!----> <span class="title" style="display:;">数据库</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/pages/efa3f2/" class="nav-link">基础篇</a></li><li class="dropdown-item"><!----> <a href="/pages/ccc445/" class="nav-link">MySql</a></li><li class="dropdown-item"><!----> <a href="/pages/54616e/" class="nav-link">Redis</a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="嵌入式软件开发" class="dropdown-title"><!----> <span class="title" style="display:;">嵌入式软件开发</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/pages/d142c2/" class="nav-link">电子嵌入式通信协议</a></li><li class="dropdown-item"><!----> <a href="/pages/4c6bf3/" class="nav-link">深入浅出SSD</a></li><li class="dropdown-item"><!----> <a href="/pages/d3f36a/" class="nav-link">文件系统</a></li><li class="dropdown-item"><!----> <a href="/pages/e0cca7/" class="nav-link">汇编语言</a></li><li class="dropdown-item"><!----> <a href="/pages/fab2d7/" class="nav-link">STM32</a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="开发日常" class="dropdown-title"><!----> <span class="title" style="display:;">开发日常</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/pages/e472d1/" aria-current="page" class="nav-link router-link-exact-active router-link-active">随笔（持续更新）</a></li><li class="dropdown-item"><!----> <a href="/pages/71f6ae/" class="nav-link">Git知识总结</a></li><li class="dropdown-item"><!----> <a href="/pages/db6fb8/" class="nav-link">Git备忘清单</a></li><li class="dropdown-item"><!----> <a href="/pages/e1081f/" class="nav-link">Git 创建删除远程分支</a></li><li class="dropdown-item"><!----> <a href="/pages/777b8a/" class="nav-link">nvm使用小结</a></li><li class="dropdown-item"><!----> <a href="/pages/ee770e/" class="nav-link">虚拟机固定 IP 地址</a></li><li class="dropdown-item"><!----> <a href="/pages/1ab9a6/" class="nav-link">Shell 脚本学习笔记</a></li><li class="dropdown-item"><!----> <a href="/pages/411aa4/" class="nav-link">VScode 插件 CodeGeeX 使用教程</a></li><li class="dropdown-item"><!----> <a href="/pages/0d525d/" class="nav-link">KylinV10 将项目上传至 Github教程</a></li><li class="dropdown-item"><!----> <a href="/pages/907786/" class="nav-link">KylinV10 安装 MySQL 教程（可防踩雷）</a></li><li class="dropdown-item"><!----> <a href="/pages/a2d21e/" class="nav-link">kylinV10-SP1 安装 QT</a></li><li class="dropdown-item"><!----> <a href="/pages/b561cf/" class="nav-link">高并发内存池</a></li><li class="dropdown-item"><!----> <a href="/pages/6ab6d1/" class="nav-link">USBGUARD 项目编译环境配置</a></li><li class="dropdown-item"><!----> <a href="/pages/883f02/" class="nav-link">Power_Destory 项目</a></li><li class="dropdown-item"><!----> <a href="/pages/479472/" class="nav-link">U 盘清除工具编译教程</a></li><li class="dropdown-item"><!----> <a href="/pages/9c4241/" class="nav-link">个人博客代码推送教程</a></li><li class="dropdown-item"><!----> <a href="/pages/3ad765/" class="nav-link">SVN Trunk Branches的Merge操作</a></li><li class="dropdown-item"><!----> <a href="/pages/0c0ca8/" class="nav-link">如何高效阅读嵌入式项目代码</a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="前端学习" class="dropdown-title"><!----> <span class="title" style="display:;">前端学习</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/pages/99897f/" class="nav-link">HTML与CSS</a></li><li class="dropdown-item"><!----> <a href="/pages/51542d/" class="nav-link">JS学习</a></li><li class="dropdown-item"><!----> <a href="/pages/803f9d/" class="nav-link">Vue3入门</a></li><li class="dropdown-item"><!----> <a href="/pages/ca4cfb/" class="nav-link">Vue3进阶</a></li><li class="dropdown-item"><!----> <a href="/pages/50e8d3/" class="nav-link">黑马Vue3</a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="MFC" class="dropdown-title"><!----> <span class="title" style="display:;">MFC</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/pages/a4b108/" class="nav-link">MFC编程随记</a></li><li class="dropdown-item"><!----> <a href="/pages/41acbd/" class="nav-link">MFC实现ini配置文件的读取</a></li><li class="dropdown-item"><!----> <a href="/pages/951a7a/" class="nav-link">MFC实现点击列表头排序</a></li><li class="dropdown-item"><!----> <a href="/pages/a8598f/" class="nav-link">贴图法美化Button按钮</a></li><li class="dropdown-item"><!----> <a href="/pages/054516/" class="nav-link">MFC使用细节</a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="闪存" class="dropdown-title"><!----> <span class="title" style="display:;">闪存</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/pages/b925b8/" class="nav-link">如何高效阅读嵌入式项目代码</a></li><li class="dropdown-item"><!----> <a href="/pages/28ec23/" class="nav-link">NAND Flash</a></li><li class="dropdown-item"><!----> <a href="/pages/62bf40/" class="nav-link">ARM 处理器</a></li><li class="dropdown-item"><!----> <a href="/pages/1a9374/" class="nav-link">嵌入式基础知识-存储器</a></li><li class="dropdown-item"><!----> <a href="/pages/aac5e3/" class="nav-link">闪存存储和制造技术概述</a></li><li class="dropdown-item"><!----> <a href="/pages/8f6056/" class="nav-link">芯片IO驱动力</a></li><li class="dropdown-item"><!----> <a href="/pages/d146b8/" class="nav-link">主流先进封装技术介绍</a></li><li class="dropdown-item"><!----> <a href="/pages/16f0ba/" class="nav-link">NAND Flash基础</a></li><li class="dropdown-item"><!----> <a href="/pages/90d8d0/" class="nav-link">基于PA算法的FTL引导</a></li><li class="dropdown-item"><!----> <a href="/pages/eb672b/" class="nav-link">SD逻辑擦除和物理擦除</a></li><li class="dropdown-item"><!----> <a href="/pages/747121/" class="nav-link">NAND Flash的SDR、ONFI、DDR接口</a></li><li class="dropdown-item"><!----> <a href="/pages/1eb351/" class="nav-link">【详解】Nand Flash必看知识</a></li><li class="dropdown-item"><!----> <a href="/pages/d2512a/" class="nav-link">【两万字详解】Nand Flash必看知识</a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="面经" class="dropdown-title"><!----> <span class="title" style="display:;">面经</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/pages/d69946/" class="nav-link">虎牙C++技术面经</a></li><li class="dropdown-item"><!----> <a href="/pages/29251d/" class="nav-link">金山一面复习</a></li><li class="dropdown-item"><!----> <a href="/pages/c7c01f/" class="nav-link">完美世界秋招 C++ 游戏开发面经(Cpp部分)</a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="其它" class="dropdown-title"><!----> <span class="title" style="display:;">其它</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/pages/fa256e/" class="nav-link">博客搭建</a></li><li class="dropdown-item"><!----> <a href="/pages/335531/" class="nav-link">网站收藏箱</a></li></ul></div></div> <!----></nav></div></header> <div class="sidebar-mask"></div> <div class="sidebar-hover-trigger"></div> <aside class="sidebar" style="display:none;"><!----> <nav class="nav-links"><div class="nav-item"><a href="/" class="nav-link">首页</a></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="CPP语言" class="dropdown-title"><!----> <span class="title" style="display:;">CPP语言</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/pages/c5bdd8/" class="nav-link">Cpp之旅</a></li><li class="dropdown-item"><!----> <a href="/pages/279e62/" class="nav-link">Cpp专栏</a></li><li class="dropdown-item"><!----> <a href="/pages/801755/" class="nav-link">Effective_CPP</a></li><li class="dropdown-item"><!----> <a href="/pages/6b2468/" class="nav-link">muduo网络库</a></li><li class="dropdown-item"><!----> <a href="/pages/5f8c9f/" class="nav-link">Unix环境高级编程</a></li><li class="dropdown-item"><!----> <a href="/pages/3f1d21/" class="nav-link">Cpp提高编程</a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="计算机基础" class="dropdown-title"><!----> <span class="title" style="display:;">计算机基础</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/pages/7b1cb2/" class="nav-link">计算机网络</a></li><li class="dropdown-item"><!----> <a href="/pages/6048a8/" class="nav-link">操作系统</a></li><li class="dropdown-item"><!----> <a href="/pages/3b34ba/" class="nav-link">数据结构</a></li><li class="dropdown-item"><!----> <a href="/pages/412fe7/" class="nav-link">Linux</a></li><li class="dropdown-item"><!----> <a href="/pages/2dcfa1/" class="nav-link">算法</a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="数据库" class="dropdown-title"><!----> <span class="title" style="display:;">数据库</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/pages/efa3f2/" class="nav-link">基础篇</a></li><li class="dropdown-item"><!----> <a href="/pages/ccc445/" class="nav-link">MySql</a></li><li class="dropdown-item"><!----> <a href="/pages/54616e/" class="nav-link">Redis</a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="嵌入式软件开发" class="dropdown-title"><!----> <span class="title" style="display:;">嵌入式软件开发</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/pages/d142c2/" class="nav-link">电子嵌入式通信协议</a></li><li class="dropdown-item"><!----> <a href="/pages/4c6bf3/" class="nav-link">深入浅出SSD</a></li><li class="dropdown-item"><!----> <a href="/pages/d3f36a/" class="nav-link">文件系统</a></li><li class="dropdown-item"><!----> <a href="/pages/e0cca7/" class="nav-link">汇编语言</a></li><li class="dropdown-item"><!----> <a href="/pages/fab2d7/" class="nav-link">STM32</a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="开发日常" class="dropdown-title"><!----> <span class="title" style="display:;">开发日常</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/pages/e472d1/" aria-current="page" class="nav-link router-link-exact-active router-link-active">随笔（持续更新）</a></li><li class="dropdown-item"><!----> <a href="/pages/71f6ae/" class="nav-link">Git知识总结</a></li><li class="dropdown-item"><!----> <a href="/pages/db6fb8/" class="nav-link">Git备忘清单</a></li><li class="dropdown-item"><!----> <a href="/pages/e1081f/" class="nav-link">Git 创建删除远程分支</a></li><li class="dropdown-item"><!----> <a href="/pages/777b8a/" class="nav-link">nvm使用小结</a></li><li class="dropdown-item"><!----> <a href="/pages/ee770e/" class="nav-link">虚拟机固定 IP 地址</a></li><li class="dropdown-item"><!----> <a href="/pages/1ab9a6/" class="nav-link">Shell 脚本学习笔记</a></li><li class="dropdown-item"><!----> <a href="/pages/411aa4/" class="nav-link">VScode 插件 CodeGeeX 使用教程</a></li><li class="dropdown-item"><!----> <a href="/pages/0d525d/" class="nav-link">KylinV10 将项目上传至 Github教程</a></li><li class="dropdown-item"><!----> <a href="/pages/907786/" class="nav-link">KylinV10 安装 MySQL 教程（可防踩雷）</a></li><li class="dropdown-item"><!----> <a href="/pages/a2d21e/" class="nav-link">kylinV10-SP1 安装 QT</a></li><li class="dropdown-item"><!----> <a href="/pages/b561cf/" class="nav-link">高并发内存池</a></li><li class="dropdown-item"><!----> <a href="/pages/6ab6d1/" class="nav-link">USBGUARD 项目编译环境配置</a></li><li class="dropdown-item"><!----> <a href="/pages/883f02/" class="nav-link">Power_Destory 项目</a></li><li class="dropdown-item"><!----> <a href="/pages/479472/" class="nav-link">U 盘清除工具编译教程</a></li><li class="dropdown-item"><!----> <a href="/pages/9c4241/" class="nav-link">个人博客代码推送教程</a></li><li class="dropdown-item"><!----> <a href="/pages/3ad765/" class="nav-link">SVN Trunk Branches的Merge操作</a></li><li class="dropdown-item"><!----> <a href="/pages/0c0ca8/" class="nav-link">如何高效阅读嵌入式项目代码</a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="前端学习" class="dropdown-title"><!----> <span class="title" style="display:;">前端学习</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/pages/99897f/" class="nav-link">HTML与CSS</a></li><li class="dropdown-item"><!----> <a href="/pages/51542d/" class="nav-link">JS学习</a></li><li class="dropdown-item"><!----> <a href="/pages/803f9d/" class="nav-link">Vue3入门</a></li><li class="dropdown-item"><!----> <a href="/pages/ca4cfb/" class="nav-link">Vue3进阶</a></li><li class="dropdown-item"><!----> <a href="/pages/50e8d3/" class="nav-link">黑马Vue3</a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="MFC" class="dropdown-title"><!----> <span class="title" style="display:;">MFC</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/pages/a4b108/" class="nav-link">MFC编程随记</a></li><li class="dropdown-item"><!----> <a href="/pages/41acbd/" class="nav-link">MFC实现ini配置文件的读取</a></li><li class="dropdown-item"><!----> <a href="/pages/951a7a/" class="nav-link">MFC实现点击列表头排序</a></li><li class="dropdown-item"><!----> <a href="/pages/a8598f/" class="nav-link">贴图法美化Button按钮</a></li><li class="dropdown-item"><!----> <a href="/pages/054516/" class="nav-link">MFC使用细节</a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="闪存" class="dropdown-title"><!----> <span class="title" style="display:;">闪存</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/pages/b925b8/" class="nav-link">如何高效阅读嵌入式项目代码</a></li><li class="dropdown-item"><!----> <a href="/pages/28ec23/" class="nav-link">NAND Flash</a></li><li class="dropdown-item"><!----> <a href="/pages/62bf40/" class="nav-link">ARM 处理器</a></li><li class="dropdown-item"><!----> <a href="/pages/1a9374/" class="nav-link">嵌入式基础知识-存储器</a></li><li class="dropdown-item"><!----> <a href="/pages/aac5e3/" class="nav-link">闪存存储和制造技术概述</a></li><li class="dropdown-item"><!----> <a href="/pages/8f6056/" class="nav-link">芯片IO驱动力</a></li><li class="dropdown-item"><!----> <a href="/pages/d146b8/" class="nav-link">主流先进封装技术介绍</a></li><li class="dropdown-item"><!----> <a href="/pages/16f0ba/" class="nav-link">NAND Flash基础</a></li><li class="dropdown-item"><!----> <a href="/pages/90d8d0/" class="nav-link">基于PA算法的FTL引导</a></li><li class="dropdown-item"><!----> <a href="/pages/eb672b/" class="nav-link">SD逻辑擦除和物理擦除</a></li><li class="dropdown-item"><!----> <a href="/pages/747121/" class="nav-link">NAND Flash的SDR、ONFI、DDR接口</a></li><li class="dropdown-item"><!----> <a href="/pages/1eb351/" class="nav-link">【详解】Nand Flash必看知识</a></li><li class="dropdown-item"><!----> <a href="/pages/d2512a/" class="nav-link">【两万字详解】Nand Flash必看知识</a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="面经" class="dropdown-title"><!----> <span class="title" style="display:;">面经</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/pages/d69946/" class="nav-link">虎牙C++技术面经</a></li><li class="dropdown-item"><!----> <a href="/pages/29251d/" class="nav-link">金山一面复习</a></li><li class="dropdown-item"><!----> <a href="/pages/c7c01f/" class="nav-link">完美世界秋招 C++ 游戏开发面经(Cpp部分)</a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="其它" class="dropdown-title"><!----> <span class="title" style="display:;">其它</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/pages/fa256e/" class="nav-link">博客搭建</a></li><li class="dropdown-item"><!----> <a href="/pages/335531/" class="nav-link">网站收藏箱</a></li></ul></div></div> <!----></nav>  <ul class="sidebar-links"><li><a href="/pages/71f6ae/" class="sidebar-link">Git知识总结</a></li><li><a href="/pages/777b8a/" class="sidebar-link">nvm使用小结</a></li><li><a href="/pages/e472d1/" aria-current="page" class="active sidebar-link">随笔（持续更新）</a><ul class="sidebar-sub-headers"><li class="sidebar-sub-header level2"><a href="/pages/e472d1/#_2-1-linux环境下" class="sidebar-link">2.1 Linux环境下：</a></li><li class="sidebar-sub-header level2"><a href="/pages/e472d1/#_2-2-windows环境下" class="sidebar-link">2.2 Windows环境下</a></li><li class="sidebar-sub-header level2"><a href="/pages/e472d1/#第一点-要将虚拟机的网络适配器改为桥接模式" class="sidebar-link">第一点：要将虚拟机的网络适配器改为桥接模式</a></li><li class="sidebar-sub-header level2"><a href="/pages/e472d1/#第二点-配置内网环境-每个公司的内网网段不一样哦" class="sidebar-link">第二点：配置内网环境（每个公司的内网网段不一样哦）</a></li><li class="sidebar-sub-header level2"><a href="/pages/e472d1/#第三点-终端连接另一台机器" class="sidebar-link">第三点：终端连接另一台机器</a></li><li class="sidebar-sub-header level2"><a href="/pages/e472d1/#chown-命令详解" class="sidebar-link">chown 命令详解</a></li><li class="sidebar-sub-header level2"><a href="/pages/e472d1/#_8-1-先重定向-ip-地址-gitlab-那里" class="sidebar-link">8.1 先重定向 ip 地址 GitLab 那里</a></li></ul></li><li><a href="/pages/ee770e/" class="sidebar-link">虚拟机固定ip地址</a></li><li><a href="/pages/411aa4/" class="sidebar-link">VScode 插件 CodeGeex 使用教程</a></li><li><a href="/pages/0d525d/" class="sidebar-link">KylinV10 将项目上传至 Github</a></li><li><a href="/pages/907786/" class="sidebar-link">KylinV10 安装 MySQL 教程（可防踩雷）</a></li><li><a href="/pages/9c4241/" class="sidebar-link">个人博客代码推送教程</a></li><li><a href="/pages/a2d21e/" class="sidebar-link">kylinV10-SP1 安装 QT</a></li><li><a href="/pages/b561cf/" class="sidebar-link">高并发内存池</a></li><li><a href="/pages/6ab6d1/" class="sidebar-link">USBGUARD项目编译环境配置</a></li><li><a href="/pages/1ab9a6/" class="sidebar-link">Shell 脚本学习笔记</a></li><li><a href="/pages/db6fb8/" class="sidebar-link">Git 备忘清单</a></li><li><a href="/pages/883f02/" class="sidebar-link">Power_Destory 项目</a></li><li><a href="/pages/479472/" class="sidebar-link">U盘清除工具编译教程</a></li><li><a href="/pages/e1081f/" class="sidebar-link">Git 创建删除远程分支</a></li><li><a href="/pages/3ad765/" class="sidebar-link">SVN Trunk Branches的Merge操作</a></li><li><a href="/pages/0c0ca8/" class="sidebar-link">如何高效阅读嵌入式项目代码</a></li></ul> </aside> <div><main class="page"><div class="theme-vdoing-wrapper "><div class="articleInfo-wrap" data-v-06225672><div class="articleInfo" data-v-06225672><ul class="breadcrumbs" data-v-06225672><li data-v-06225672><a href="/" title="首页" class="iconfont icon-home router-link-active" data-v-06225672></a></li> <li data-v-06225672><span data-v-06225672>开发日常</span></li></ul> <div class="info" data-v-06225672><div title="作者" class="author iconfont icon-touxiang" data-v-06225672><a href="javascript:;" data-v-06225672>霜晨月</a></div> <div title="创建时间" class="date iconfont icon-riqi" data-v-06225672><a href="javascript:;" data-v-06225672>2023-12-04</a></div> <!----></div></div></div> <!----> <div class="content-wrapper"><div class="right-menu-wrapper"><div class="right-menu-margin"><div class="right-menu-title">目录</div> <div class="right-menu-content"></div></div></div> <h1><img src="">随笔（持续更新）<!----></h1> <!----> <div class="theme-vdoing-content content__default"><h1 id="随笔-持续更新"><a href="#随笔-持续更新" class="header-anchor">#</a> 随笔（持续更新）</h1> <h1 id="_1、某个网络有没有连通"><a href="#_1、某个网络有没有连通" class="header-anchor">#</a> 1、某个网络有没有连通</h1> <p>要获取某个网站的ip地址，可以通过ping它的域名就可以得到IP地址</p> <p>例如：我想获取百度的ip地址（Windows环境）</p> <div class="language-cmd line-numbers-mode"><pre class="language-text"><code>C:\Users\tq&gt;ping www.baidu.com

正在 Ping www.a.shifen.com [14.119.104.189] 具有 32 字节的数据:
来自 14.119.104.189 的回复: 字节=32 时间=6ms TTL=56
来自 14.119.104.189 的回复: 字节=32 时间=6ms TTL=56
来自 14.119.104.189 的回复: 字节=32 时间=6ms TTL=56
来自 14.119.104.189 的回复: 字节=32 时间=7ms TTL=56

14.119.104.189 的 Ping 统计信息:
    数据包: 已发送 = 4，已接收 = 4，丢失 = 0 (0% 丢失)，
往返行程的估计时间(以毫秒为单位):
    最短 = 6ms，最长 = 7ms，平均 = 6ms
</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br><span class="line-number">6</span><br><span class="line-number">7</span><br><span class="line-number">8</span><br><span class="line-number">9</span><br><span class="line-number">10</span><br><span class="line-number">11</span><br><span class="line-number">12</span><br></div></div><p>如上述cmd终端中所示的<code>14.119.104.189</code>就是百度的一个ip地址</p> <p>所以直接用命令行<code>ping 14.119.104.189</code>也能ping通</p> <p>而在Linux环境下要检查是否ping通，除了<code>ping 14.119.104.189</code>这个命令，还可以使用<code>telnet</code>但是要加上本机已经开放的端口号这里使用80端口</p> <div class="language-bash line-numbers-mode"><pre class="language-bash"><code>kylin@kylin:~/桌面$ telnet <span class="token number">14.119</span>.104.189 <span class="token number">80</span>
Trying <span class="token number">14.119</span>.104.189<span class="token punctuation">..</span>.
Connected to <span class="token number">14.119</span>.104.189.
Escape character is <span class="token string">'^]'</span><span class="token builtin class-name">.</span>
GET / HTTP/1.1
Host:14.119.104.189
Connection closed by foreign host.
</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br><span class="line-number">6</span><br><span class="line-number">7</span><br></div></div><p>我们发现使用虚拟机telnet百度的ip地址会出现以下画面</p> <p><img alt="1699421819074" data-src="https://cdn.jsdelivr.net/gh/xiaose-code/Pictures@main/img/1699421819074.webp" loading="lazy" class="lazy"></p> <p>我们输入</p> <div class="language-bash line-numbers-mode"><pre class="language-bash"><code>GET / HTTP/1.1
Host:14.119.104.189
</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br><span class="line-number">2</span><br></div></div><p>发送一个HTTP 1.1的请求，发现连接会被百度的服务器所关闭，被对方的防火墙拦截了。但是实际上已经是连通了，只是对方把我们拦截住了。</p> <h1 id="_2、如何查看某个端口号是否已开放"><a href="#_2、如何查看某个端口号是否已开放" class="header-anchor">#</a> 2、如何查看某个端口号是否已开放</h1> <h2 id="_2-1-linux环境下"><a href="#_2-1-linux环境下" class="header-anchor">#</a> 2.1 Linux环境下：</h2> <p>可以使用以下几种方法：</p> <ol><li><p>使用 <code>netstat</code> 命令：
使用 <code>netstat</code> 命令可以列出当前系统上的网络连接和监听端口。你可以运行以下命令，将端口号替换为你要检查的端口：</p> <div class="language-bash line-numbers-mode"><pre class="language-bash"><code><span class="token function">netstat</span> <span class="token parameter variable">-tuln</span> <span class="token operator">|</span> <span class="token function">grep</span> <span class="token operator">&lt;</span>端口号<span class="token operator">&gt;</span>
<span class="token comment">#例如，要检查端口 80 是否开放，可以运行：</span>
<span class="token function">netstat</span> <span class="token parameter variable">-tuln</span> <span class="token operator">|</span> <span class="token function">grep</span> <span class="token number">80</span>
</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br></div></div><p>如果该端口处于监听状态，表示它是开放的。</p> <p>例如：</p> <div class="language- line-numbers-mode"><pre class="language-text"><code>kylin@kylin:~/桌面$ netstat -tuln
激活Internet连接 (仅服务器)
Proto Recv-Q Send-Q Local Address           Foreign Address         State      
tcp        0      0 0.0.0.0:139             0.0.0.0:*               LISTEN     
tcp        0      0 0.0.0.0:8751            0.0.0.0:*               LISTEN     
tcp        0      0 127.0.1.1:53            0.0.0.0:*               LISTEN     
tcp        0      0 127.0.0.1:53            0.0.0.0:*               LISTEN     
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN     
tcp        0      0 127.0.0.1:631           0.0.0.0:*               LISTEN     
tcp        0      0 0.0.0.0:445             0.0.0.0:*               LISTEN     
tcp6       0      0 :::139                  :::*                    LISTEN     
tcp6       0      0 ::1:53                  :::*                    LISTEN     
tcp6       0      0 :::22                   :::*                    LISTEN     
tcp6       0      0 ::1:631                 :::*                    LISTEN     
tcp6       0      0 :::445                  :::*                    LISTEN     
......
</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br><span class="line-number">6</span><br><span class="line-number">7</span><br><span class="line-number">8</span><br><span class="line-number">9</span><br><span class="line-number">10</span><br><span class="line-number">11</span><br><span class="line-number">12</span><br><span class="line-number">13</span><br><span class="line-number">14</span><br><span class="line-number">15</span><br><span class="line-number">16</span><br></div></div><p>根据你的 <code>netstat -tuln</code> 输出，可以看到正在监听的端口以及它们的状态。以下是一些端口和状态的解释：</p> <ul><li><p><code>0.0.0.0:139</code> 和 <code>:::139</code>：这是端口 139，通常用于 NetBIOS 会话服务，用于文件和打印共享。</p></li> <li><p><code>0.0.0.0:8751</code>：这是一个定制端口（非标准端口），目前不清楚它的具体用途。</p></li> <li><p><code>127.0.1.1:53</code> 和 <code>127.0.0.1:53</code>：这是端口 53，用于 DNS 服务，但它仅绑定到本地主机（loopback）地址。这表示 DNS 服务仅对本地主机可用。</p></li> <li><p><code>0.0.0.0:22</code> 和 <code>:::22</code>：这是端口 22，用于 SSH（Secure Shell）服务，用于远程访问和管理主机。</p></li> <li><p><code>127.0.0.1:631</code> 和 <code>::1:631</code>：这是端口 631，用于 CUPS（Common Unix Printing System）服务，用于打印服务。</p></li> <li><p><code>0.0.0.0:445</code> 和 <code>:::445</code>：这是端口 445，通常用于 SMB（Server Message Block）文件共享服务，用于 Windows 文件共享。</p></li></ul> <p>根据输出，端口 80 并没有显示在 <code>netstat</code> 结果中，这意味着在默认的配置下，端口 80 当前没有正在监听的服务。如果希望开放端口 80，需要启动或配置一个 Web 服务器（如 Apache 或 Nginx）来监听端口 80。</p></li> <li><p>使用 <code>ss</code> 命令：
<code>ss</code> 命令与 <code>netstat</code> 类似，也可以用来列出网络连接和监听端口。运行以下命令来检查端口是否开放，将端口号替换为你要检查的端口：</p> <div class="language-bash line-numbers-mode"><pre class="language-bash"><code>ss <span class="token parameter variable">-tuln</span> <span class="token operator">|</span> <span class="token function">grep</span> <span class="token operator">&lt;</span>端口号<span class="token operator">&gt;</span>
</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br></div></div><p>例如，要检查端口 80 是否开放，可以运行：</p> <div class="language-bash line-numbers-mode"><pre class="language-bash"><code>ss <span class="token parameter variable">-tuln</span> <span class="token operator">|</span> <span class="token function">grep</span> <span class="token number">80</span>
</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br></div></div><p>如果端口处于监听状态，它就是开放的。</p></li> <li><p>使用 <code>telnet</code> 命令：
你可以使用 <code>telnet</code> 命令来尝试连接到特定端口。如果连接成功，表示端口是开放的。运行以下命令，将 <code>&lt;IP地址&gt;</code> 替换为目标 IP 地址，<code>&lt;端口号&gt;</code> 替换为要检查的端口号：</p> <div class="language-bash line-numbers-mode"><pre class="language-bash"><code>telnet <span class="token operator">&lt;</span>IP地址<span class="token operator">&gt;</span> <span class="token operator">&lt;</span>端口号<span class="token operator">&gt;</span>
</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br></div></div><p>例如，要检查 IP 地址为 192.168.1.100 的主机上的端口 80 是否开放，可以运行：</p> <div class="language-bash line-numbers-mode"><pre class="language-bash"><code>telnet <span class="token number">192.168</span>.1.100 <span class="token number">80</span>
</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br></div></div><p>如果连接成功，表示端口是开放的。</p></li></ol> <h2 id="_2-2-windows环境下"><a href="#_2-2-windows环境下" class="header-anchor">#</a> 2.2 Windows环境下</h2> <p>可以使用以下方法来查看特定端口是否开放：</p> <ol><li><p>使用 Telnet 命令：</p> <p>打开命令提示符（Command Prompt）并运行以下命令，将 <code>&lt;IP地址&gt;</code> 替换为目标 IP 地址，<code>&lt;端口号&gt;</code> 替换为要检查的端口号：</p> <div class="language-shell line-numbers-mode"><pre class="language-shell"><code>telnet <span class="token operator">&lt;</span>IP地址<span class="token operator">&gt;</span> <span class="token operator">&lt;</span>端口号<span class="token operator">&gt;</span>
</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br></div></div><p>例如，要检查 IP 地址为 192.168.1.100 的主机上的端口 80 是否开放，可以运行：</p> <div class="language-shell line-numbers-mode"><pre class="language-shell"><code>telnet <span class="token number">192.168</span>.1.100 <span class="token number">80</span>
</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br></div></div><p>如果端口是开放的，你将看到成功的连接消息。如果连接失败，表示端口可能是关闭的或受到防火墙的阻止。</p></li> <li><p>使用 PowerShell 的 <code>Test-NetConnection</code> 命令：</p> <p>打开 PowerShell 并运行以下命令，将 <code>&lt;IP地址&gt;</code> 替换为目标 IP 地址，<code>&lt;端口号&gt;</code> 替换为要检查的端口号：</p> <div class="language-shell line-numbers-mode"><pre class="language-shell"><code>Test-NetConnection <span class="token parameter variable">-ComputerName</span> <span class="token operator">&lt;</span>IP地址<span class="token operator">&gt;</span> <span class="token parameter variable">-Port</span> <span class="token operator">&lt;</span>端口号<span class="token operator">&gt;</span>
</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br></div></div><p>例如，要检查 IP 地址为 192.168.1.100 的主机上的端口 80 是否开放，可以运行：</p> <div class="language-shell line-numbers-mode"><pre class="language-shell"><code>Test-NetConnection <span class="token parameter variable">-ComputerName</span> <span class="token number">192.168</span>.1.100 <span class="token parameter variable">-Port</span> <span class="token number">80</span>
</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br></div></div><p>该命令将提供关于连接状态的信息，包括是否成功连接到该端口。</p></li></ol> <p>这些方法可以帮助你在 Windows 环境中检查特定端口是否开放。请注意，如果你尝试连接到远程主机上的端口，确保你具有适当的权限，并且目标主机处于运行状态。如果连接失败，可能是因为防火墙或网络配置的问题。</p> <h1 id="_3、通过内网拉取其他电脑的文件"><a href="#_3、通过内网拉取其他电脑的文件" class="header-anchor">#</a> 3、通过内网拉取其他电脑的文件</h1> <p><strong>==笔者这里是kylinV10操作系统==</strong></p> <h2 id="第一点-要将虚拟机的网络适配器改为桥接模式"><a href="#第一点-要将虚拟机的网络适配器改为桥接模式" class="header-anchor">#</a> 第一点：要将虚拟机的网络适配器改为桥接模式</h2> <p><img alt="1701164237011" data-src="https://cdn.jsdelivr.net/gh/xiaose-code/Pictures@main/img/1701164237011.webp" loading="lazy" class="lazy"></p> <h2 id="第二点-配置内网环境-每个公司的内网网段不一样哦"><a href="#第二点-配置内网环境-每个公司的内网网段不一样哦" class="header-anchor">#</a> 第二点：配置内网环境（每个公司的内网网段不一样哦）</h2> <p><img alt="1701164692492" data-src="https://cdn.jsdelivr.net/gh/xiaose-code/Pictures@main/img/1701164692492.webp" loading="lazy" class="lazy"></p> <p><img alt="1701165171141" data-src="https://cdn.jsdelivr.net/gh/xiaose-code/Pictures@main/img/1701165171141.webp" loading="lazy" class="lazy"></p> <p><img alt="1702374121000" data-src="https://cdn.jsdelivr.net/gh/xiaose-code/Pictures@main/img/1702374121000.webp" loading="lazy" class="lazy"></p> <p><img alt="1702261894008" data-src="https://cdn.jsdelivr.net/gh/xiaose-code/Pictures@main/img/1702261894008.webp" loading="lazy" class="lazy"></p> <h2 id="第三点-终端连接另一台机器"><a href="#第三点-终端连接另一台机器" class="header-anchor">#</a> 第三点：终端连接另一台机器</h2> <ol><li>在终端输入</li></ol> <div class="language-bash line-numbers-mode"><pre class="language-bash"><code><span class="token function">ssh</span> 主机名@地址
<span class="token comment"># 比如我的是</span>
<span class="token function">ssh</span> kylin@192.168.0.213
<span class="token comment"># 然后需要输入你要远程连接的那台主机的虚拟机登陆密码</span>
</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br></div></div><p><img alt="1701165523235" data-src="https://cdn.jsdelivr.net/gh/xiaose-code/Pictures@main/img/1701165523235.webp" loading="lazy" class="lazy"></p> <ol start="2"><li><p>然后在你想存放从远程拷贝过来的文件的位置打开终端</p> <p><img alt="1701165716950" data-src="https://cdn.jsdelivr.net/gh/xiaose-code/Pictures@main/img/1701165716950.webp" loading="lazy" class="lazy"></p></li></ol> <p>输入命令</p> <div class="language-bash line-numbers-mode"><pre class="language-bash"><code><span class="token function">scp</span> <span class="token parameter variable">-r</span> 主机名@地址:需要拷贝的文件的路径 <span class="token builtin class-name">.</span>
<span class="token comment"># 笔者这里是</span>
<span class="token function">scp</span> <span class="token parameter variable">-r</span> kylin@192.168.0.213:/data/king_check/ <span class="token builtin class-name">.</span>
<span class="token comment"># 注意最后还有一个点的，指的是当前目录</span>
</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br></div></div><hr> <h1 id="_2023-12-12-更新"><a href="#_2023-12-12-更新" class="header-anchor">#</a> 2023.12.12 更新</h1> <h1 id="_4、关闭麒麟系统的-kysec-安全控制"><a href="#_4、关闭麒麟系统的-kysec-安全控制" class="header-anchor">#</a> 4、关闭麒麟系统的 kysec 安全控制</h1> <p>不关闭这个 KylinV10SP1 系统的 kysec 安全控制，编译途中会总是需求手动允许，未允许将会报错。</p> <div class="language-bash line-numbers-mode"><pre class="language-bash"><code><span class="token function">sudo</span> setstatus disable
</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br></div></div><p><img alt="1702447153254" data-src="https://cdn.jsdelivr.net/gh/xiaose-code/Pictures@main/img/1702447153254.webp" loading="lazy" class="lazy"></p> <p>想具体了解的看一看着篇文章https://zhuanlan.zhihu.com/p/349663329</p> <h1 id="_5、kylinv10-系统下-vscode-1-85-版本一直闪退问题"><a href="#_5、kylinv10-系统下-vscode-1-85-版本一直闪退问题" class="header-anchor">#</a> 5、KylinV10 系统下 VScode 1.85 版本一直闪退问题</h1> <p>以下是笔者的麒麟版本</p> <p><img alt="1702373193967" data-src="https://cdn.jsdelivr.net/gh/xiaose-code/Pictures@main/img/1702373193967.webp" loading="lazy" class="lazy"></p> <p>一开始笔者直接去官网下载 deb 包版本是 November 2023 (version 1.85) 的 code_1.85.0-1701902998_amd64.deb</p> <div class="language-bash line-numbers-mode"><pre class="language-bash"><code><span class="token comment"># 先卸载系统可能自带的或者以前残留的（也可能没有自带）</span>
<span class="token function">sudo</span> <span class="token function">apt-get</span> <span class="token parameter variable">--purge</span> remove code
<span class="token comment"># 安装</span>
<span class="token function">sudo</span> dpkg <span class="token parameter variable">-i</span> code_1.85.0-1701902998_amd64.deb
<span class="token comment"># 运行打开试试</span>
code
<span class="token comment"># 很好，画面一闪而过，网上查了N天资料，试了N种办法，无法解决</span>
<span class="token comment"># 最后还是选择广撒网，安装旧版本的VScode</span>
</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br><span class="line-number">6</span><br><span class="line-number">7</span><br><span class="line-number">8</span><br></div></div><p>其实只要老版本基本都能成功，但是，它不支持 CodeGeeX 插件啊，我要你何用！果断换新一点的版本，最后选择了 code_1.74.3-1673284829_amd64.deb 版本成功！没有闪退啦</p> <p>这是链接：https://code.visualstudio.com/updates/v1_74</p> <p><img alt="1702373764549" data-src="https://cdn.jsdelivr.net/gh/xiaose-code/Pictures@main/img/1702373764549.webp" loading="lazy" class="lazy"></p> <p><strong>OK，这个 bug 完结撒花</strong></p> <h1 id="_6、kylinv10下vscode终端显示-1-done-如何去除"><a href="#_6、kylinv10下vscode终端显示-1-done-如何去除" class="header-anchor">#</a> 6、KylinV10下VScode终端显示“[1] + Done...&quot;如何去除</h1> <div class="language-bash line-numbers-mode"><pre class="language-bash"><code><span class="token punctuation">[</span><span class="token number">1</span><span class="token punctuation">]</span> + Done                       <span class="token string">&quot;/usr/bin/gdb&quot;</span> <span class="token parameter variable">--interpreter</span><span class="token operator">=</span>mi <span class="token parameter variable">--tty</span><span class="token operator">=</span><span class="token variable">${DbgTerm}</span> <span class="token operator"><span class="token file-descriptor important">0</span>&lt;</span><span class="token string">&quot;/tmp/Microsoft-MIEngine-In-qxfiruw4.fji&quot;</span> <span class="token operator"><span class="token file-descriptor important">1</span>&gt;</span><span class="token string">&quot;/tmp/Microsoft-MIEngine-Out-moepe4ci.c51&quot;</span>
</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br></div></div><p>找到<code>launch.json</code>文件</p> <p><img alt="1702974787590" data-src="https://cdn.jsdelivr.net/gh/xiaose-code/Pictures@main/img/1702974787590.webp" loading="lazy" class="lazy"></p> <p><img alt="1702974885516" data-src="https://cdn.jsdelivr.net/gh/xiaose-code/Pictures@main/img/1702974885516.webp" loading="lazy" class="lazy"></p> <div class="language-bash line-numbers-mode"><pre class="language-bash"><code><span class="token comment"># 可能是这种情况（区别就在gdb的路径而已）</span>
<span class="token string">&quot;miDebuggerArgs&quot;</span><span class="token builtin class-name">:</span> <span class="token string">&quot;-q -ex quit; wait() { fg &gt;/dev/null; }; /bin/gdb -q --interpreter=mi&quot;</span>
<span class="token comment"># 第一种不行就下面这种</span>
<span class="token string">&quot;miDebuggerArgs&quot;</span><span class="token builtin class-name">:</span> <span class="token string">&quot;-q -ex quit; wait() { fg &gt;/dev/null; }; /usr/bin/gdb -q --interpreter=mi&quot;</span>
<span class="token comment"># 还是不行就用 which gdb 看看自己的 gdb 在什么路径下</span>
</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br></div></div><p><img alt="1702975018204" data-src="https://cdn.jsdelivr.net/gh/xiaose-code/Pictures@main/img/1702975018204.webp" loading="lazy" class="lazy"></p> <p>然后把自己的路径替换进去就行了，也就 是 &quot;miDebuggerArgs&quot; :里面的 <code>/usr/bin/gdb</code> 这里换成你自己的路径</p> <h1 id="_2024-1-10更新"><a href="#_2024-1-10更新" class="header-anchor">#</a> 2024.1.10更新</h1> <h1 id="_7、kylinv10sp1-的数据盘下执行脚本需要-sudo-如何更改"><a href="#_7、kylinv10sp1-的数据盘下执行脚本需要-sudo-如何更改" class="header-anchor">#</a> 7、kylinV10SP1 的数据盘下执行脚本需要 sudo 如何更改</h1> <blockquote><p>正常来说，执行脚本，即使脚本里涉及到需要创建文件，而且是在 root 组里的文件创建文件，也不需要加 sudo,在 root 组里加 sudo 创建文件很危险，容易导致整个目录更改。</p> <p>所以，我们需要更改脚本所属文件的组别，即可以实现在 root 组的目录里含有 用户组的目录文件，效果如下图</p> <p>data目录本身属于 root 级别的组别，其子目录，直接创建的话一般都是 root 组别，需要使用命令去更改组别</p></blockquote> <p><strong>如何查看某个文件是什么组别：</strong></p> <div class="language-bash line-numbers-mode"><pre class="language-bash"><code><span class="token function">ls</span> <span class="token parameter variable">-l</span>
</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br></div></div><p><img alt="1704850185832" data-src="https://cdn.jsdelivr.net/gh/xiaose-code/Pictures@main/img/1704850185832.webp" loading="lazy" class="lazy"></p> <p><img alt="1704850030418" data-src="https://cdn.jsdelivr.net/gh/xiaose-code/Pictures@main/img/1704850030418.webp" loading="lazy" class="lazy"></p> <p><strong>具体命令如下：</strong></p> <div class="language-bash line-numbers-mode"><pre class="language-bash"><code><span class="token comment"># 在 data 目录下执行以下命令，这里加 sudo 是因为操作在 root 组别目录下</span>
<span class="token function">sudo</span> <span class="token function">chown</span> <span class="token parameter variable">-R</span> kylin:kylin king_check/
</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br><span class="line-number">2</span><br></div></div><ul><li>这条命令的意思是用管理员权限把 king_check 目录（包括其下所有子目录和文件）的所有者和所属组都改为 <code>kylin</code>。</li> <li>其中，<code>chown</code> 是改变文件所有者的命令，“-R”选项代表级联操作，也就是对目标目录以及其所有子目录和文件进行操作；<code>kylin:kylin</code> 表示将所有者和所属组都改为 <code>kylin</code> 用户；<code>king_check/</code> 则是你要操作的目标目录。</li></ul> <h2 id="chown-命令详解"><a href="#chown-命令详解" class="header-anchor">#</a> chown 命令详解</h2> <blockquote><p>常见的 <code>chown</code> 命令格式如下：</p> <div class="language- line-numbers-mode"><pre class="language-text"><code>chown [选项]… [所有者][:[组]] 文件…
</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br></div></div><p>这里的 &quot;所有者&quot; 是用户名，&quot;组&quot; 是组名，&quot;文件&quot; 是待修改所有者或所属组的一个或多个文件。你可以只指定所有者，也可以同时指定所有者和所属组。</p></blockquote> <p><strong>常用选项有：</strong></p> <ul><li><code>-R</code> 或 <code>--recursive</code> ：递归改变指定目录及其子目录下的所有文件的所有者和组。这是在处理整个目录时常用的选项。</li> <li><code>-c</code> 或 <code>--changes</code> ：类似 <code>--verbose</code>，但只在发生改变时才会显示详细信息。</li> <li><code>-v</code> 或 <code>--verbose</code> ：详细显示执行过程，这对于排查问题非常有用。</li> <li><code>-f</code> 或 <code>--silent</code> 或 <code>--quiet</code> ：屏蔽大部分错误信息。</li></ul> <p>例如，如果你想把所有者和所属组都改为 <code>kylin</code>，操作文件 <code>file1.txt</code>，则可以这样操作：</p> <div class="language-bash line-numbers-mode"><pre class="language-bash"><code><span class="token comment"># 如果在用户目录下就不用加 sudo </span>
<span class="token function">chown</span> kylin:kylin file1.txt
</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br><span class="line-number">2</span><br></div></div><p>如果你想递归地改变目录 <code>dir1</code> 及其所有子目录和文件的所有者为 <code>tq</code>，则可以这样操作：</p> <div class="language-bash line-numbers-mode"><pre class="language-bash"><code><span class="token function">chown</span> <span class="token parameter variable">-R</span> kylin dir1
</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br></div></div><h1 id="_8、-从公司-gitlab-拉取部分代码更新项目"><a href="#_8、-从公司-gitlab-拉取部分代码更新项目" class="header-anchor">#</a> 8、 从公司 GitLab 拉取部分代码更新项目</h1> <h2 id="_8-1-先重定向-ip-地址-gitlab-那里"><a href="#_8-1-先重定向-ip-地址-gitlab-那里" class="header-anchor">#</a> 8.1 先重定向 ip 地址 GitLab 那里</h2> <p>先查看自己的 ip 地址(192.168.0.177)，和网卡（ens33）</p> <p><img alt="1705475293502" data-src="https://cdn.jsdelivr.net/gh/xiaose-code/Pictures@main/img/1705475293502.webp" loading="lazy" class="lazy"></p> <blockquote><p>公司 GitLab 地址是 192.168.6.2</p></blockquote> <p>比如，笔者这里想更新 usbdesktop 目录的内容，就在这个目录下进行操作</p> <div class="language- line-numbers-mode"><pre class="language-text"><code>sudo ifconfig ens33:1 192.168.6.177
git pull
</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br><span class="line-number">2</span><br></div></div><blockquote><p><code>ifconfig ens33:1 192.168.6.177</code> 表示为这个别名分配 IP 地址 <code>192.168.6.177</code></p></blockquote> <p><img alt="1705475769832" data-src="https://cdn.jsdelivr.net/gh/xiaose-code/Pictures@main/img/1705475769832.webp" loading="lazy" class="lazy"></p> <div class="language- line-numbers-mode"><pre class="language-text"><code># 如果显示地址文件已存在，说明 IP 地址冲突了，换一个试试，比如 103 换成 104
sudo ifconfig ens33:1 192.168.6.178
</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br><span class="line-number">2</span><br></div></div><p><img alt="1705475675645" data-src="https://cdn.jsdelivr.net/gh/xiaose-code/Pictures@main/img/1705475675645.webp" loading="lazy" class="lazy"></p></div></div> <!----> <div class="page-edit"><!----> <!----> <div class="last-updated"><span class="prefix">上次更新:</span> <span class="time">2024/6/3 14:54:44</span></div></div> <div class="page-nav-wapper"><div class="page-nav-centre-wrap"><a href="/pages/777b8a/" class="page-nav-centre page-nav-centre-prev"><div class="tooltip">nvm使用小结</div></a> <a href="/pages/ee770e/" class="page-nav-centre page-nav-centre-next"><div class="tooltip">虚拟机固定ip地址</div></a></div> <div class="page-nav"><p class="inner"><span class="prev">
        ←
        <a href="/pages/777b8a/" class="prev">nvm使用小结</a></span> <span class="next"><a href="/pages/ee770e/">虚拟机固定ip地址</a>→
      </span></p></div></div></div> <!----></main></div> <div class="footer"><!----> 
  Theme by
  <a href="https://github.com/xugaoyi/vuepress-theme-vdoing" target="_blank" title="本站主题">Vdoing</a> 
    | Copyright © 2023-2025
    <span>霜晨月</span></div> <div class="buttons"><div title="返回顶部" class="button blur go-to-top iconfont icon-fanhuidingbu" style="display:none;"></div> <div title="去评论" class="button blur go-to-comment iconfont icon-pinglun" style="display:none;"></div> <div title="主题模式" class="button blur theme-mode-but iconfont icon-zhuti"><ul class="select-box" style="display:none;"><li class="iconfont icon-zidong">
          跟随系统
        </li><li class="iconfont icon-rijianmoshi">
          浅色模式
        </li><li class="iconfont icon-yejianmoshi">
          深色模式
        </li><li class="iconfont icon-yuedu">
          阅读模式
        </li></ul></div></div> <!----> <!----> <!----></div><div class="global-ui"><canvas id="vuepress-canvas-cursor"></canvas></div></div>
    <script src="/assets/js/app.67adcfd9.js" defer></script><script src="/assets/js/4.9aaa1650.js" defer></script><script src="/assets/js/1.5474518c.js" defer></script><script src="/assets/js/3.593d14fc.js" defer></script><script src="/assets/js/152.41cde7f0.js" defer></script>
  </body>
</html>
